/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.tkgarment.system.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.util.logging.Logger;
import com.tkgarment.system.domain.Employee;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;

/**
 *
 * @author zraj
 */
public class EmployeeDetailAction extends ActionSupport implements SessionAware{

    private Map<String, Object> session;
    Employee emp;
    public String execute() throws Exception {
        return "success";
    }
     
    public String empInfo() throws Exception {
        if (getSession().get("selectedemp") != null) {
            setEmp((Employee)session.get("selectedemp"));
        }
        return SUCCESS;
    }

    public Employee getEmp() {
        return emp;
    }

    public void setEmp(Employee emp) {
        this.emp = emp;
    }
    
     
     

    public static Logger getLOG() {
        return LOG;
    }

    public static void setLOG(Logger LOG) {
        ActionSupport.LOG = LOG;
    }

    public Map<String, Object> getSession() {
        return session;
    }

    @Override
    public void setSession(Map<String, Object> map) {
        this.session = map;
    }
    
}
